ViewConfigurationCompat
Helper for accessing features in ViewConfiguration.
Functions
Link copied to clipboard
open fun getScaledHorizontalScrollFactor(@NonNull config: ViewConfiguration, @NonNull context: Context): Float
Link copied to clipboard
Link copied to clipboard
open fun getScaledMaximumFlingVelocity(@NonNull context: Context, @NonNull config: ViewConfiguration, inputDeviceId: Int, axis: Int, source: Int): Int
Maximum absolute value of velocity to initiate a fling for a motion generated by an InputDevice with an id of
inputDeviceId
, from an input source
and on a given motion event axis
.Link copied to clipboard
open fun getScaledMinimumFlingVelocity(@NonNull context: Context, @NonNull config: ViewConfiguration, inputDeviceId: Int, axis: Int, source: Int): Int
Minimum absolute value of velocity to initiate a fling for a motion generated by an InputDevice with an id of
inputDeviceId
, from an input source
and on a given motion event axis
.Link copied to clipboard
Call getScaledPagingTouchSlop.
Link copied to clipboard
open fun getScaledVerticalScrollFactor(@NonNull config: ViewConfiguration, @NonNull context: Context): Float
Link copied to clipboard
Report if the device has a permanent menu key available to the user, in a backwards compatible way.
Link copied to clipboard
open fun shouldShowMenuShortcutsWhenKeyboardPresent(@NonNull config: ViewConfiguration, @NonNull context: Context): Boolean
Check if shortcuts should be displayed in menus.